package com.punai.Incomedata.controller;

import com.punai.Incomedata.bo.MonthCzHzBo;
import com.punai.Incomedata.bo.MonthCzHzTableBo;
import com.punai.Incomedata.bo.NoPageBo;
import com.punai.Incomedata.service.CztjService;
import com.punai.Incomedata.vo.TabsGetDataVo;
import com.punai.common.core.controller.BaseController;
import com.punai.common.core.domain.AjaxResult;
import com.punai.common.core.page.TableDataInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/nncomedata/cztj")
public class CztjController extends BaseController {

    @Autowired
    private CztjService cztjService;

    @GetMapping("selectHzData")
    public AjaxResult selectHzData(TabsGetDataVo vo) {
        List<MonthCzHzTableBo> result = cztjService.selectHzData(vo);
        return AjaxResult.success(result);
    }


    @GetMapping("getTableList")
    public AjaxResult getTableList(TabsGetDataVo vo) {
        TableDataInfo tableDataInfo = cztjService.selectTableList(vo);
        return AjaxResult.success(tableDataInfo);
    }


}
